<template>
  <div>
    <button @click="showFn">按钮</button>
    <tanchu v-show="isShow" :isShow="isShow" />
  </div>
</template>

<script>
import tanchu from "./tanchu";
export default {
  data() {
    return {
      isShow: false,
    };
  },
  methods: {
    setData(v) {},
    showFn() {
      this.isShow = !this.isShow;
    },
  },
  components: {
    tanchu,
  },
};
</script>

<style scoped>
</style>